package com.xrkj.miniprogram.server.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@TableName("digtal_devices")
@Accessors(chain = true)
public class DigitalDevice {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("client_id")
    private Integer clientId;

    @TableField("group_id")
    private Integer groupId;

    @TableField("categroy_id")
    private Integer categoryId;

    @TableField("name")
    private String name;

    @TableField("detail")
    private String detail;

    @TableField("picture")
    private String picture;

    @TableField("longitude")
    private Float longitude;

    @TableField("latitude")
    private Float latitude;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;

    @TableField("deleted_at")
    private LocalDateTime deletedAt;

    @TableField("state")
    private Integer state;

    @TableField("address")
    private Integer address;
}